package com.dong.com.love.base;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * 适配器基类
 * Created by Dong on 2016/10/31.
 */



public abstract class BaseListAdapter extends BaseAdapter {

    protected Context context;

    protected List list;

    @Override
    public int getCount() {
        return list.size();
    }

    @Override
    public Object getItem(int i) {
        return list.get(i);
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public abstract  View getView(int i, View view, ViewGroup viewGroup);

}
